package com.company;


import java.math.BigDecimal;

/*
水果类
 */
public class Fruit {
    private String name;
    private BigDecimal price;
    private BigDecimal num;

    public Fruit(String name, BigDecimal price) {
        this.name = name;
        this.price = price;
    }

    public Fruit(String name, BigDecimal price, BigDecimal num) {
        this.name = name;
        this.price = price;
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getNum() {
        return num;
    }

    public void setNum(BigDecimal num) {
        this.num = num;
    }
}
